﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Gmmy.Utility.Enums
{
    public enum CustomApiResultCode
    {
        /// <summary>
        /// 操作成功
        /// </summary>
        [Description("操作成功")]
        Succ = 0,

        /// <summary>
        /// 必要字段值为空
        /// </summary>
        [Description("必要字段值为空")]
        NullCodeErr = 100,

        /// <summary>
        /// 字段长度不正确
        /// </summary>
        [Description("字段长度不正确")]
        CodeLenErr = 101,

        /// <summary>
        /// 参数值不正确
        /// </summary>
        [Description("参数值不正确")]
        CodeValErr = 102,

        /// <summary>
        /// 认证信息验证失败
        /// </summary>
        [Description("认证信息验证失败")]
        AuthenticationInvalid = 103,

        /// <summary>
        /// 权限不足
        /// </summary>
        [Description("权限不足")]
        AuthorizationInvalid = 104,


        /// <summary>
        /// http接口错误
        /// </summary>
        [Description("http接口错误")]
        HttpPortErr = 104,

        /// <summary>
        /// 消息体格式错误
        /// </summary>
        [Description("消息体格式错误")]
        MessageFormatErr = 105,
        
        /// <summary>
        /// 业务异常
        /// </summary>
        [Description("业务异常")]
        OtherErr = 999,
    }
}
